<?php

/*
 *------------------------------------------------------------------------------
 * Project Name  : e-Synergy Library System
 *         Code  : ESN-LBS
 *
 * Created By    : Junlapong
 *         Date  : 2010/01/21
 *
 * $Id$
 *------------------------------------------------------------------------------
 *    copyright: e-Synergy Co., Ltd.
 *==============================================================================
 */

/**
 * @author Junlapong
 *
 */
class Common_Model extends Model 
{
    function __construct()
    {
        parent::Model();
    }

    /**
     * getNameClass
     * 
     * @param $classCode
     * @return unknown_type
     */
    function getNameClass($classCode)
    {
        $SQL = "SELECT N.Value
		             , N.Name
					 , N.NameCode
				  FROM tbm_name_class N
				 WHERE N.ClassCode = '" . $classCode . "'
				 ORDER BY n.NameCode ";

        $query = $this->db->query($SQL);

        return $query;
    }    
}

// END Helper_model class

/* End of file Helper_model */
/* Location: application/models/helper_model.php */